import Vue from 'vue'
import App from './App'
import store from './store/index.js'
import mixin from './common/mixin'

Vue.config.productionTip = false
/* 字体图标 */
import '@/styles/iconfont.css'

App.mpType = 'app'

Vue.prototype.$store = store
/* UI库 */
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

// 引入uView提供的对vuex的简写法文件
let vuexStore = require('@/store/$u.mixin.js');
Vue.mixin(vuexStore);

/* 注册全局方法 */
require('./utils/config/registerFunction.js')

// #ifdef MP
// 引入uView对小程序分享的mixin封装
const mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)
// #endif
Vue.mixin(mixin)

const app = new Vue({
  store,
  ...App
})

app.$mount()
